home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / PowerPlant / CTriangleControl / UDrawingState.More.h < prev   
Encoding:
Text File  |  1994-12-05  |  704 b   |  31 lines  |  [TEXT/CWIE]

  1. // ===========================================================================
  2. //    UDrawingState.More.h                    ©1994 Mike Shields. All rights reserved.
  3. // ===========================================================================
  4.  
  5. // A class similar to the StColorPen state class in UDrawingState which only
  6. // handles the pen state. This is useful when ColorQD is not available, since
  7. // there is no way to Get/Set the color state in that case.
  8.  
  9. #pragma once
  10.  
  11. #include <PP_Prefix.h>
  12.  
  13. #ifndef __QUICKDRAW__
  14. #include <QuickDraw.h>
  15. #endif
  16.  
  17. class    StPenState 
  18. {
  19. public:
  20.                 StPenState();
  21.                 ~StPenState();
  22.                 
  23.     void        Save();
  24.     void        Restore();
  25.                 
  26.     static void    Normalize();
  27.  
  28. private:
  29.     PenState        mPenState;
  30. };
  31.